﻿using SIG.Resources.Admin;
using System;
using System.ComponentModel.DataAnnotations;

namespace SIG.InputModel.Admin.Chronicles
{
    public class ChronicleIM
    {
      
        public int Id { get; set; }

        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        [Display(ResourceType = typeof(Labels), Name = "Title")]
        public string Title { get; set; }
      
        [Display(ResourceType = typeof(Labels), Name = "Active")]
        public bool Active { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Year")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public short Year { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Month")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public short Month { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Day")]
        public short? Day { get; set; }

    }
}
